package com.example.demo.entity;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 咨询表(Consultation)表实体类
 *
 * @author makejava
 * @since 2025-01-28 13:04:50
 */
@SuppressWarnings("serial")
@Data
public class Consultation extends Model<Consultation> {

    private Long id;
    //专家id
    private Long expertId;
    //儿童ID
    private Long childId;
    //家长用户ID
    private Long userId;
    //咨询标题
    private String title;
    //咨询内容
    private String content;
    //咨询类型：growth-生长发育,nutrition-营养,psychology-心理,other-其他
    private String consultationType;
    //状态：0-未回复，1-已回复，2-已关闭
    private Integer status;
    //创建时间

    private Date createTime;
    //医生回复内容
    private String doctorReply;
    //回复时间
    private Date replyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getExpertId() {
        return expertId;
    }

    public void setExpertId(Long expertId) {
        this.expertId = expertId;
    }

    public Long getChildId() {
        return childId;
    }

    public void setChildId(Long childId) {
        this.childId = childId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getConsultationType() {
        return consultationType;
    }

    public void setConsultationType(String consultationType) {
        this.consultationType = consultationType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDoctorReply() {
        return doctorReply;
    }

    public void setDoctorReply(String doctorReply) {
        this.doctorReply = doctorReply;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

